<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*,java.io.*,java.sql.*,InvestmentPojo.*,ImmovableIndia.*;"%>
<%-- <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> --%>
<%-- <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %> --%>
<html>
<head>
<title>ODI Tool</title>
<link rel="icon" type="image664/png" href="images664/dev7logo.png" />
</head>
<%!
ConnectionPool pool=null;
public Connection getConnection() throws SQLException, Exception {
	pool=new ConnectionPool();
	return pool.getConnection();
}
%>
<% 
List optionsList123=new ArrayList();
Connection con=null;
Statement st=null;
ResultSet rs=null;	
String optionvalue="";
try{
	con=getConnection();
	st=con.createStatement();
	rs=st.executeQuery("select * from investment_in_india where form_id = 6 order by option_label");
	while(rs.next()){
		OptionsList obj = new OptionsList();
		
		
		obj.setOptionId(rs.getString(1));
		obj.setListTypeId(rs.getString(2));
		obj.setOptionLabel(rs.getString(3));
		obj.setOptionValue(rs.getString(4));
		obj.setQestFlag(rs.getString(7));
		obj.setShowFlag(rs.getString(8));
		optionsList123.add(obj);
	}
//	System.out.println(optionsList);	
}catch(Exception e ){
	e.printStackTrace();
}finally{
	try {
		if(null != rs)
			pool.releaseResources(rs);
		System.out.println("Connection RS closed........--------------");
		if(null != st)
			pool.releaseResources(st);
		System.out.println("Connection ST closed........--------------");
		if(null != con)
		pool.releaseConnection(con);
		System.out.println("Connection con closed........--------------");
	} catch (Exception e) {
		e.printStackTrace();
	}
}
%>
<script language='javascript' type='text/javascript'>
function loadSectorDropDown()
{
	var selectedValue ='';
	var selectedInvestor ='';
	var radios ='';
	
	radios = document.getElementsByName("entity");		
	for(var i = 0; i < radios.length; i++) {
	    if(radios[i].checked) selectedValue = radios[i].value;  
	} 	
	radios = document.getElementsByName("investor");
	for(var i = 0; i < radios.length; i++) {
	    if(radios[i].checked) selectedInvestor = radios[i].value;  
	}
	//alert("selected value..."+selectedValue);
	var xmlhttp;
	if (window.XMLHttpRequest)
	  {
		// code for IE7+, Firefox, Chrome, Opera, Safari
	   xmlhttp=new XMLHttpRequest();
	  }
	else
	  {
		// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	     {
		  document.getElementById("TR04").innerHTML = "";
	     document.getElementById("TR04").innerHTML= xmlhttp.responseText;
 	    }
	  }
	xmlhttp.open("GET","dropDownAction.do?key="+selectedValue+"&invkey="+selectedInvestor+"&formId="+6,true);
	xmlhttp.send();
	selectedValue = '';
}
function loadFormToSubmit()
{

	var selectedValue ='';
	var sectorId = '';
	var subsectorId = '';
	var invRadiosValue = getSelectedRadiosValue("entities");
	    if(invRadiosValue != "" && null != invRadiosValue){ 
	    	selectedValue = invRadiosValue;  
	}	//alert(selectedValue+"--1");
	var entityRadios = getSelectedRadiosValue("activitiesabroad");		
	    if(entityRadios != "" && null != entityRadios){ 
	    	selectedValue = selectedValue+'.'+entityRadios;  
	} 	///alert(selectedValue+"--2");
	var modeOfInvValue = getSelectedRadiosValue("countryinvest");
	 	if(modeOfInvValue !="" && null != modeOfInvValue){
		selectedValue = selectedValue+'.'+modeOfInvValue;
	 }  //alert(selectedValue+"--5");
	var msmedValue = getSelectedRadiosValue("typeofinv");
		if(msmedValue != "" && null != msmedValue){
			selectedValue = selectedValue+'.'+msmedValue;
		}
	var modeofpay = getSelectedRadiosValue("modeofpay");
		if(modeofpay != "" && null != modeofpay){
			selectedValue = selectedValue+'.'+modeofpay;
		}
	var notMsmedValue = getSelectedRadiosValue("valuation");
		if(notMsmedValue != "" && null != notMsmedValue){
			selectedValue = selectedValue+'.'+notMsmedValue;
		}
	//alert("selected value = "+selectedValue);
	//document.getElementById("selected").innerHTML = "Selected Key - "+selectedValue;
	var xmlhttp;
	if (window.XMLHttpRequest)
	  {
		// code for IE7+, Firefox, Chrome, Opera, Safari
	   xmlhttp=new XMLHttpRequest();
	  }
	else
	  {
		// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	     {
		document.getElementById("myDiv").innerHTML='';
		cache: false;
	    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
	    cache: false;
	    }
	  }
	xmlhttp.open("GET","investorAction.do?key="+selectedValue+"&formId="+6,true);
	xmlhttp.send();
	selectedValue = '';
}
function radioUncheckFun(radiosname){
	var radList = document.getElementsByName(radiosname);
	if(null != radList){
	 for (var i = 0; i < radList.length; i++) {
	 if(radList[i].checked) radList[i].checked = false;
	 }
}}
function getSelectedRadiosValue(NameofRadios){
	var selectedRadioValue='';
	var radList = document.getElementsByName(NameofRadios);
	if(null != radList){
	 for (var i = 0; i < radList.length; i++) {
	 if(radList[i].checked) selectedRadioValue = radList[i].value;
	 }
	 return selectedRadioValue;
   }
}
function goForConclution(){
	loadFormToSubmit();
	document.getElementById("Answers").style.display="";
	document.getElementById("myDiv").innerHTML="<img alt='Plz wait...' src='loading9.gif' width='30'/>&nbsp;&nbsp;<p valign='middle'>Plz wait...&nbsp;&nbsp;While loading...</p>";
	document.getElementById('bottom').scrollIntoView();
	goForGuidelines();
}

function onClickEntityInInida(id){
	var selectedRadioValue = '';
	var radList = document.getElementsByName("entities");
	document.getElementById("submitbutton").style.display="none";
	document.getElementById('SPV').style.display="";
	document.getElementById("Answers").style.display="none";
	setVisibilityArr([activities8,activities9,activities10,activities11,activities12,activities13,activities14,activities15],'');
	if(null != radList){
		 for (var i = 0; i < radList.length; i++) {
		 if(radList[i].checked) selectedRadioValue = radList[i].value;
		 }
		   <% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj1 =(OptionsList)optionsList123.get(i); 
	if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("20") && obj1.getShowFlag().equals("Y")){
		String abc = (String)obj1.getOptionValue();
		%>
		if(selectedRadioValue == '<%=abc%>'){
			document.getElementById('entitytr'+selectedRadioValue).style.display="";
			document.getElementById('quest').style.display="";
			document.getElementById('table1').style.display="";
		}else{
			document.getElementById('entitytr<%=abc%>').style.display="none";
		}
		<%
			}
		}
	}
	%>
	if(getSelectedRadiosValue("entities") == "1" || getSelectedRadiosValue("entities") == "6"){
		setVisibilityArr([activities14,activities15],'none');
	}else if(getSelectedRadiosValue("entities") == "2"){
		setVisibilityArr([activities11,activities14,activities15],'none');
	}else if(getSelectedRadiosValue("entities") == "3" || getSelectedRadiosValue("entities") == "7"){
		document.getElementById('SPV').style.display="none";
		setVisibilityArr([activities8,activities9,activities10,activities11,activities12,activities13,activities15],'none');
	}else if(getSelectedRadiosValue("entities") == "4" || getSelectedRadiosValue("entities") == "5"){
		document.getElementById('SPV').style.display="none";
		setVisibilityArr([activities8,activities9,activities10,activities11,activities12,activities13,activities14],'none');
	}else if(getSelectedRadiosValue("entities") == "27"){
		setVisibilityArr([activities9,activities10,activities14,activities15],'none');
	}
	   }
}
function onClickEntityInInidaShowAll(){
	document.getElementById('quest').style.display="none";
	document.getElementById('table1').style.display="none";
	document.getElementById('table2').style.display="none";
	document.getElementById('table3').style.display="none";
	document.getElementById('table5').style.display="none";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	onClickProposedActivitiesShowAll();
	radioUncheckFun('entities'); radioUncheckFun('activitiesabroad'); radioUncheckFun('countryinvest'); radioUncheckFun('typeofinv'); radioUncheckFun('valuation');
	   <% if(optionsList123 != null){
			for(int i=0;i<optionsList123.size();i++){
			OptionsList obj1 =(OptionsList)optionsList123.get(i); 
			if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("20") && obj1.getShowFlag().equals("Y")){
				String abc = (String)obj1.getOptionValue();
				%>
					document.getElementById('entitytr<%=abc%>').style.display="";
				<%
					}
				}
			}
			%>
}
function onClickProposedActivities(){
	//document.getElementById('table2').style.display="none";
	document.getElementById('table3').style.display="none";
	document.getElementById('table5').style.display="none";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	radioUncheckFun('valuation'); radioUncheckFun('countryinvest'); radioUncheckFun('typeofinv');
	var selectedRadioValue = '';
	var radList = document.getElementsByName("activitiesabroad");
	document.getElementById('table2').style.display="";
	if(null != radList){
		 for (var i = 0; i < radList.length; i++) {
		 if(radList[i].checked) selectedRadioValue = radList[i].value;
		 }
		   <% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj1 =(OptionsList)optionsList123.get(i); 
	if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("21") && obj1.getShowFlag().equals("Y")){
		String abc = (String)obj1.getOptionValue();
		%>
		if(selectedRadioValue == '<%=abc%>'){
			document.getElementById('activities'+selectedRadioValue).style.display="";
			document.getElementById('questp').style.display="";
		}else{
			document.getElementById('activities<%=abc%>').style.display="none";
		}
		<%
			}
		}
	}
	%>
	   }
	
	var ProhibitedArr=new Array("8","9","11");
	if(getSelectedRadiosValue("entities") == "27"){
	    ProhibitedArr=new Array("8","9","12","11");
	}
	for (var i = 0; i < ProhibitedArr.length; i++){
		if(ProhibitedArr[i] == getSelectedRadiosValue("activitiesabroad")){
		 document.getElementById("submitbutton").style.display="";
		 document.getElementById("table2").style.display="none";								
		}
		  } 
}
function onClickProposedActivitiesShowAll(){
	document.getElementById('questp').style.display="none";
	document.getElementById('table2').style.display="none";
	document.getElementById('table3').style.display="none";
	document.getElementById('table5').style.display="none";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	onClickCountryOfInvShowAll();
	radioUncheckFun('activitiesabroad'); radioUncheckFun('countryinvest'); radioUncheckFun('typeofinv'); radioUncheckFun('valuation');
	   <% if(optionsList123 != null){
			for(int i=0;i<optionsList123.size();i++){
			OptionsList obj1 =(OptionsList)optionsList123.get(i); 
			if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("21") && obj1.getShowFlag().equals("Y")){
				String abc = (String)obj1.getOptionValue();
				%>
					document.getElementById('activities<%=abc%>').style.display="";
				<%
					}
				}
			}
			%>
			if(getSelectedRadiosValue("entities") == "1" || getSelectedRadiosValue("entities") == "6"){
				setVisibilityArr([activities14,activities15],'none');
			}else if(getSelectedRadiosValue("entities") == "2"){
				setVisibilityArr([activities11,activities14,activities15],'none');
			}else if(getSelectedRadiosValue("entities") == "3" || getSelectedRadiosValue("entities") == "7"){
				setVisibilityArr([activities8,activities9,activities10,activities11,activities12,activities13,activities15],'none');
			}else if(getSelectedRadiosValue("entities") == "4" || getSelectedRadiosValue("entities") == "5"){
				setVisibilityArr([activities8,activities9,activities10,activities11,activities12,activities13,activities14],'none');
			}else if(getSelectedRadiosValue("entities") == "27"){
				setVisibilityArr([activities9,activities10,activities14,activities15],'none');
			}		
}
function onClickCountryOfInv(){
	 onClickModeOfPayShowAll();
	var selectedRadioValue = '';
	var radList = document.getElementsByName("countryinvest");
	if(null != radList){
		 for (var i = 0; i < radList.length; i++) {
		 if(radList[i].checked) selectedRadioValue = radList[i].value;
		 }
		   <% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj1 =(OptionsList)optionsList123.get(i); 
	if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("22") && obj1.getShowFlag().equals("Y")){
		String abc = (String)obj1.getOptionValue();
		%>
		if(selectedRadioValue == '<%=abc%>'){
			document.getElementById('countryinv'+selectedRadioValue).style.display="";
			document.getElementById('questc').style.display="";
			document.getElementById('table5').style.display="";
		}else{
			document.getElementById('countryinv<%=abc%>').style.display="none";
		}
		<%
			}
		}
	}
	%>
	
	   }
		if('16' == getSelectedRadiosValue("countryinvest")){
		 document.getElementById("submitbutton").style.display="";
		 document.getElementById("table4").style.display="none";
		 document.getElementById("table5").style.display="none";
		}else if('19'== getSelectedRadiosValue("countryinvest")){
		document.getElementById("table4").style.display="";
		document.getElementById("table5").style.display="none";
		document.getElementById("submitbutton").style.display="none";
		}else if(getSelectedRadiosValue("entities") == "1" || getSelectedRadiosValue("entities") == "6"){
			document.getElementById("table5").style.display="";
		}else if(getSelectedRadiosValue("entities") == "2" ){
		setVisibilityArr([modeofpay21,modeofpay24,modeofpay25,modeofpay26],'none');	
		}
}
function onClickCountryOfInvShowAll(){
	document.getElementById('questc').style.display="none";
	document.getElementById('table4').style.display="none";
	document.getElementById('table5').style.display="none";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	radioUncheckFun('countryinvest'); radioUncheckFun('typeofinv'); radioUncheckFun('modeofpay');
	   <% if(optionsList123 != null){
			for(int i=0;i<optionsList123.size();i++){
			OptionsList obj1 =(OptionsList)optionsList123.get(i); 
			if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("22") && obj1.getShowFlag().equals("Y")){
				String abc = (String)obj1.getOptionValue();
				%>
					document.getElementById('countryinv<%=abc%>').style.display="";
				<%
					}
				}
			}
			%>
			/* if(getSelectedRadiosValue("entities") == "2"){
				 setVisibilityArr([countryinv16,countryinv17,countryinv18],'none');
		     } */
}
function onClickModeOfPay(){
	var selectedRadioValue = '';
	var radList = document.getElementsByName("modeofpay");
	if(null != radList){
		 for (var i = 0; i < radList.length; i++) {
		 if(radList[i].checked) selectedRadioValue = radList[i].value;
		 }
		   <% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj1 =(OptionsList)optionsList123.get(i); 
	if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("23") && obj1.getShowFlag().equals("Y")){
		String abc = (String)obj1.getOptionValue();
		%>
		if(selectedRadioValue == '<%=abc%>'){
			document.getElementById('modeofpay'+selectedRadioValue).style.display="";
			document.getElementById('questd').style.display="";
			document.getElementById('table5').style.display="";
		}else{
			document.getElementById('modeofpay<%=abc%>').style.display="none";
		}
		<%
			}
		}
	}
	%>
	
	   }
}
function onClickModeOfPayShowAll(){
	document.getElementById('questd').style.display="none";
	//document.getElementById('table4').style.display="none";
	document.getElementById('table5').style.display="none";
	document.getElementById("submitbutton").style.display="none";
	document.getElementById("Answers").style.display="none";
	radioUncheckFun('typeofinv'); radioUncheckFun('modeofpay');
	   <% if(optionsList123 != null){
			for(int i=0;i<optionsList123.size();i++){
			OptionsList obj1 =(OptionsList)optionsList123.get(i); 
			if(obj1.getListTypeId() != null && obj1.getListTypeId().equals("23") && obj1.getShowFlag().equals("Y")){
				String abc = (String)obj1.getOptionValue();
				%>
					document.getElementById('modeofpay<%=abc%>').style.display="";
				<%
					}
				}
			}
			%>
			if(getSelectedRadiosValue("entities") == "2" ){
				setVisibilityArr([modeofpay21,modeofpay24,modeofpay25,modeofpay26],'none');	
			}
}

function onClickEntity(){
	var repyes=document.getElementById("repyes");
	 var repno=document.getElementById("repno");
	 if(repyes.checked){
		 document.getElementById("submitbutton").style.display="";
		 document.getElementById("Answers").style.display="none";
	     }
	 if(repno.checked){
		 document.getElementById("submitbutton").style.display="";
		 document.getElementById("Answers").style.display="none";
		 }
}

function onClickJVRSOW(){
	onClickCountryOfInvShowAll();
	document.getElementById('table3').style.display="none";
	var repyes=document.getElementById("tr4yes");
	 var repno=document.getElementById("tr4no");
	 if(repyes.checked){
		 if(getSelectedRadiosValue("entities") == "3" || getSelectedRadiosValue("entities") == "4" || getSelectedRadiosValue("entities") == "5" || getSelectedRadiosValue("entities") == "7"){
			 document.getElementById("submitbutton").style.display="";
		 }else if(getSelectedRadiosValue("entities") == "2"){
			 //setVisibilityArr([countryinv16,countryinv17,countryinv18],'none');
			 document.getElementById("table3").style.display="";
	     }else if(getSelectedRadiosValue("entities") == "27" ){
				document.getElementById("table3").style.display="none";
				document.getElementById("table5").style.display="";
			}else{
	    	 document.getElementById("submitbutton").style.display="none";
			 document.getElementById("table3").style.display="";	
	     }
	 }
	 if(repno.checked){
		 document.getElementById("table3").style.display="none";
		 document.getElementById("submitbutton").style.display="";
		 }
}
function goForGuidelines(){
	 wLeft = window.screenLeft ? window.screenLeft : window.screenX;
    wTop = window.screenTop ? window.screenTop : window.screenY;
	 w=600; h=320;
   var left = wLeft + (window.innerWidth / 2) - (w / 2);
   var top = wTop + (window.innerHeight / 2) - (h / 2);
   var settings='toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left;
   var URL="dropDownAction.do?formGuideId=ODITOOL.GuideInfo&method=FormGuidsInfo";
	window.target='target';
   myWind=window.open(URL,'target',settings);
	//myWind.document.write("Guidelines Test Success...!");
	myWind.focus();
	
}
</script>
<body>
	<form name="frm" method="post">
		<table width="750" align="center" border="0" cellspacing="0"
			cellpadding="0">
			<input type="hidden" name="formId" value="6" />
		</table>
		<table width="750" align="center" class="TBFORM" border="0"
			cellspacing="0" cellpadding="0">

			<tr>
				<td align="center" height="10" class="TITLEFORM">ODI Tool</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td width="750" style="padding-left:10px">
					<table width="720" align="center" class="TDBBLRFORM" border="0"
						cellspacing="0" cellpadding="0">
						<tr>
							<td colspan="2" class="testform" width="720" id=""><b>Persons Resident in India</b> &nbsp;<a class="anchor" style="display: none;" id="quest"
								href="javascript:onClickEntityInInidaShowAll()" value="show all"
								align="right">show all</a></td>
						</tr>
						<tr>
							<td>
								<table width="720" align="center" border="0" cellspacing="0"
									cellpadding="0">
									<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("20") && obj.getShowFlag().equals("Y")){
	%>
									<tr id="entitytr<%=obj.getOptionValue()%>">
										<td width="30" valign="top"><input type="radio"
											name="entities" id="<%=obj.getOptionId()%>"
											value="<%= obj.getOptionValue()%>"
											onclick="onClickEntityInInida('<%=obj.getOptionId()%>')" /></td>
										<td width="770" valign="top"><font><label
													for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
									</tr>
									<%	
	}
	}	  		
} %>
								</table>
							</td>
						</tr>
					</table>
					<div id="table1" style="display: none;">
						<table width="720" align="center" border="0" cellspacing="0"
							cellpadding="0">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>

						<table width="720" align="center" class="TDBBLRFORM" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr>
								<td colspan="2" class="testform" width="720" id=""><b>Proposed
										activities abroad</b> &nbsp;<a class="anchor" style="display: none;" id="questp"
									href="javascript:onClickProposedActivitiesShowAll()"
									value="show all" align="right">show all</a></td>
							</tr>
							<tr>
								<td>
									<table width="720" align="center" border="0" cellspacing="0"
										cellpadding="0" valign="middle">
										<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("21") && obj.getShowFlag().equals("Y")){
	%>
										<tr id="activities<%=obj.getOptionValue()%>">
											<td width="30" valign="top"><input type="radio"
												name="activitiesabroad" id="<%=obj.getOptionId()%>"
												value="<%= obj.getOptionValue()%>"
												onclick="onClickProposedActivities()" /></td>
											<td width="770" valign="top"><font><label
														for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
										</tr>
										<%	
	}
	}	  		
} %>

									</table>
								</td>
							</tr>
						</table>
					</div>
					<div id="table2" style="display: none;">
						<table width="720" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="730" align="center" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr class="testform">
								<td width="500"><b>Whether the investment in JV / WOS&nbsp;<span id='SPV'>either directly or through SPV</span></b></td>
								<td width="300"><b><label for="tr4yes"><input
											type="radio" value="Y" name="valuation" id="tr4yes"
											onClick="onClickJVRSOW()" />&nbsp;YES</label>&nbsp;&nbsp;<label
										for="tr4no"><input type="radio" value="N"
											name="valuation" id="tr4no" onClick="onClickJVRSOW()" />&nbsp;NO</label></b></td>
							</tr>
						</table>
					</div>
					<div id="table3" style="display: none;">
						<table width="720" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="720" align="center" class="TDBBLRFORM" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr>
								<td colspan="2" class="testform" width="720" id=""><b>Country
										of investment</b> &nbsp;<a class="anchor" style="display: none;" id="questc"
									href="javascript:onClickCountryOfInvShowAll()" value="show all"
									align="right">show all</a></td>
							</tr>
							<tr>
								<td>
									<table width="720" align="center" border="0" cellspacing="0"
										cellpadding="0" valign="middle">
										<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("22")){
	%>
										<tr id="countryinv<%=obj.getOptionValue()%>">
											<td width="30" valign="top"><input type="radio"
												name="countryinvest" id="<%=obj.getOptionId()%>"
												value="<%= obj.getOptionValue()%>"
												onclick="onClickCountryOfInv()" /></td>
											<td width="770" valign="top"><font><label
														for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
										</tr>
										<%	
	}
	}	  		
} %>
									</table>
								</td>
							</tr>
						</table>
					</div>
					<div id="table4" style="display: none;">
						<table width="720" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="720" align="center" class="TDBBLRFORM" border="0"
							cellspacing="0" cellpadding="0" valign="middle">
							<tr>
								<td colspan="2" class="testform" width="720" id=""><b>Mode of Payment</b> &nbsp;<a class="anchor" style="display: none;" id="questd"
									href="javascript:onClickModeOfPayShowAll()" value="show all"
									align="right">show all</a></td>
							</tr>
							<tr>
								<td>
									<table width="720" align="center" border="0" cellspacing="0"
										cellpadding="0" valign="middle">
										<% if(optionsList123 != null){
	for(int i=0;i<optionsList123.size();i++){
	OptionsList obj =(OptionsList)optionsList123.get(i); 
	if(obj.getListTypeId() != null && obj.getListTypeId().equals("23")){
	%>
										<tr id="modeofpay<%=obj.getOptionValue()%>">
											<td width="30" valign="top"><input type="radio"
												name="modeofpay" id="<%=obj.getOptionId()%>"
												value="<%= obj.getOptionValue()%>"
												onclick="onClickModeOfPay()" /></td>
											<td width="770" valign="top"><font><label
														for="<%=obj.getOptionId()%>"><%= obj.getOptionLabel()%></label></font></td>
										</tr>
										<%	
	}
	}	  		
} %>
									</table>
								</td>
							</tr>
						</table>
					</div>
					<div id="table5" style="display: none;">
						<table width="720" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
						</table>
						<table width="730" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr class="testform">
								<td width="200"><b>Type of investment&nbsp;</b></td>
								<td width="600"><b><label for="repyes"><input
											type="radio" value="Y" name="typeofinv" id="repyes"
											onClick="onClickEntity()"><span class="seperator"
											onMouseover="ddrivetip('Sale proceeds and dividend net of taxes is eligible to be taken back from India.', 300)"
											;
onMouseout="hideddrivetip()">Existing Entity ?</span>&nbsp;&nbsp;</label><label
										for="repno"><input type="radio" value="N"
											name="typeofinv" id="repno" onClick="onClickEntity()"><span
											class="seperator"
											onMouseover="ddrivetip(' Sale proceeds and dividend net of taxes is <b>not eligible</b> to be taken back from India.', 300)"
											;
onMouseout="hideddrivetip()">New Entity ?</span></b></td>
							</tr>
						</table>
					</div>
					<div id="submitbutton" style="display: none;">
						<table width="720" align="center" border="0" cellspacing="0"
							cellpadding="0" valign="middle">
							<tr>
								<td>&nbsp;</td>
							</tr>
							<tr align="center">
								<td><a class="anchor" align="center" id="finalanswer"
									href="javascript:goForConclution()" value="">Go For
										Conclusion</a></td>
							</tr>
							<!-- <tr>
								<td id="selected" style="display: none;"></td>
							</tr> -->
						</table>
					</div>
					<div id='bottom'>
						<div id="Answers" style="display: none;">
							<table width="720" align="center" border="0" cellspacing="0"
								cellpadding="0" valign="middle">
								<tr>
									<td>&nbsp;</td>
								</tr>
							</table>
							<table width="720" bgcolor="#E5E4E2" align="center"
								class="TBFORM" border="0" cellspacing="0" cellpadding="0"
								valign="middle">
								<tr class="testform">
									<td width="720" align="left"><font size="2"><b>Know Eligibility with Allied Conditions</b></font></td>
								</tr>
								<tr>
									<td id="myDiv" align="center"></td>
								</tr>
							</table>
							<table width="720" align="center" border="0" cellspacing="0"
								cellpadding="0" valign="middle">
								<tr>
									<td>&nbsp;</td>
								</tr>
							</table>
							<table width="720" align="center" border="0" cellspacing="0"
								cellpadding="0" valign="middle">
								<tr>
									<td><a class="anchor" style="width:170px;" id="finalanswer"
									href="javascript:goForGuidelines()" value=""><b>General
										Guidelines</b></a></td>
								</tr>
							</table>
						</div>
					</div>
			<tr>
				<td>&nbsp;</td>
			</tr>
			</td>
			</tr>
		</table>
		<table width="720" align="center" border="0" cellspacing="0"
			cellpadding="0" valign="middle">
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>

	</form>
</body>
<script type="text/javascript">
function setVisibilityArr(varArray,visibility){
    if(null != varArray){
        for(i = 0; i < varArray.length; i++){
            var tdvar = varArray[i];
            if(tdvar != null){
            tdvar.style.display=visibility;
            }
        }
    }
 }
document.body.onload = function(){
   // document.getElementById("sectorid").selected='';
    /* document.getElementById("table1").style.display="none";
    document.getElementById("table2").style.display="none";
    document.getElementById("table3").style.display="none";
    document.getElementById("table4").style.display="none";
    document.getElementById("table5").style.display="none";  */
    radioUncheckFun('entities');	
    radioUncheckFun('activitiesabroad');
    radioUncheckFun('countryinvest');	
    radioUncheckFun('typeofinv');
    radioUncheckFun('valuation');
	 //radioUncheckFun("msmed");
	 }

</script>
</html>